<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>提现</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no,email=no,address=no"/>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="../css/common.css"/>
    <link rel="stylesheet" href="../css/main.css"/>
</head>
<body>
    <article class="pt20">
        <label class="plr80 bw db pb30">
            <p class="pt40 pb20 col9">提现金额</p>
            <div class="flex_a bdb ptb40">
                <img src="../img/rmb.png" style="width: .32rem;">
                <input type="number" class="flex1 ml20" id="money" oninput="this.value.replace(/[0-9]/g,'')" placeholder="请输入提现金额">
            </div>
            <p style="margin-top: 0.3rem;color: #999;"><b style="color: #F53C44;">*</b>提现将打款当前微信账号余额</p>
        </label>
        <!--<p class="col9 plr24 lh90">提款到的账号</p>
        <label class="bw pr24 flex_a h100">
            <img src="../img/ico33.png" style="width: .4rem;" class="mlr24">
            <span>微信号：</span>
            <input type="text" class="flex_1 ml10" placeholder="请输入账号.." id="wxCount">
        </label>-->
        <div class="plr30 mt100">
            <button class="border-r6 bgc1 colw tac lh90 pw100 btn_tap">确定</button>
        </div>
    </article>
</body>
</html>
<script src="../js/jquery-1.8.3.min.js"></script>
<script src="../js/dlc.js"></script>
<script>
    var onOff = 0;
    $('.btn_tap').click(function(){
        var money = $('#money').val()*1;
        var wxCount = $('#wxCount').val();
        if(isNull(money)){
            dlctipbox.show('请输入提现金额');
        }else{
            onOff = 1;
            dlctipbox.loading('请稍后');
            dlc_request('/api/walletDetail/withdrawDeposit',{'agentId':get_save('userId'),'money':money*100}, function(res){
                dlctipbox.clear();
                if(res.code==1){
                    dlctipbox.show('提交成功');
                    setTimeout(function () {
                        history.go(-1);
                    },1500);
                }else{
                    onOff=0;
                    dlctipbox.show(res.msg);
                }
            });
        }
    });
</script>






















